package jupd.main;

import java.awt.AWTException;
import java.awt.Image;
import java.awt.SystemTray;
import java.awt.TrayIcon;
import java.io.File;
import java.io.IOException;

import javax.imageio.ImageIO;

public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Image image = null;
		try {
			image = ImageIO.read(new File("./res/tray.png"));
			TrayIcon trayIcon = new TrayIcon(image);
			SystemTray tray = SystemTray.getSystemTray();
			tray.add(trayIcon);

		} catch (IOException e) {
			e.printStackTrace();
		}
		catch(AWTException awtException){
			awtException.printStackTrace();
		}
		new Thread(){
			@Override
			public void run() {
				// TODO Auto-generated method stub
				super.run();
			}
		};
		
	}

}
